package com.moneywelcome.loanserviceassembly.apiimpl;


import com.moneywelcome.loanservicefacade.api.RepayServiceApi;
import com.moneywelcome.loanservicefacade.forms.RepaymentForm;
import com.moneywelcome.results.Result;
import com.moneywelcome.validate.ValidationUtils;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户还款
 */
@RestController
public class RepayServiceApiImpl implements RepayServiceApi {

    /**
     * 用户还款
     * @param form
     * @return
     */
    @Override
    public Result repayment(@RequestBody RepaymentForm form) {
        ValidationUtils.validate(form);




        return Result.success();
    }

}
